﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Pg.BioMedics.SDR.Client
{
    /// <summary>
    /// Interaction logic for ProgressWindow.xaml
    /// </summary>
    public partial class ProgressWindow : Window
    {
        #region Fields

        private static ProgressWindow progressWindow;

        #endregion

        #region Constructors

        public ProgressWindow()
        {
            InitializeComponent();
        }

        #endregion

        #region Static methods

        internal static void Show()
        {
            if (progressWindow == null)
            {
                progressWindow = new ProgressWindow();
                progressWindow.ShowDialog();
            }
        }

        internal static void Hide()
        {
            if (progressWindow != null)
            {
                progressWindow.Close();
                progressWindow = null;
            }
        }

        #endregion
    }
}
